package user;

import book.BookList;
import ioperations.Ioperation;

/**
 * Created with IntelliJ IDEA.
 * Description:
 * User: LENOVO
 * Date: 2024-08-02
 * Time: 15:38
 */
public abstract class User {
    protected String name;

    public String getName() {
        return name;
    }

    public abstract int menu();
    public void setName(String name) {
        this.name = name;
    }

    public User(String name) {
        this.name = name;
    }
    public Ioperation[] ioperations;
    public  void doOperation(int choice, BookList bookList){
        ioperations[choice].work(bookList);
    }

}
